// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   delFile.java

package include.nseer_cookie;

import java.io.File;

public class delFile
{

	public delFile()
	{
	}

	public void delete(String filepath)
	{
		File file = new File(filepath);
		if (file.exists() && file.isDirectory())
		{
			if (file.listFiles().length == 0)
			{
				file.delete();
			} else
			{
				File file1[] = file.listFiles();
				for (int j = 0; j < file1.length; j++)
				{
					if (file1[j].isDirectory())
						delete(file1[j].getAbsolutePath());
					file1[j].delete();
				}

			}
			delete(filepath);
		}
	}
}
